/*
 * Copyright (C) 2017-2019 Dremio Corporation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
@import "~@app/uiTheme/less/color-schema.less";
@import "~@app/uiTheme/less/mixins.less"; // replacement of typography.less with mixins.less changes the output significantly
 //but the change is in better direction. Duplicated styles from typography are not loaded

:global { // DX-11429 TODO reafactor component to use css modules instead fo global classes

  #admin-page {
    // DX-23750. Instead of having the scroll bar on the page-level, move it down to the left-nav and main-content level.
    .page-content {
      overflow: hidden;
    }
    .left-menu {
      overflow: auto;
      .left-item {
        &:hover{
          outline: 1px solid rgba(0,0,0,.05);
        }
        &.selected {
          background-color: rgba(0,0,0,.05);
          cursor: default;
          outline: 0;
        }
      }
    }

    .separator {
      border-bottom: 1px solid #D6D6D6;
      clear: both;
      margin: 5px 0;
    }

    .fixedDataTableLayout_header {
      .formLabel();
      // DX-23708. Fixed the table header/body overlapping issue
      background-color: #fff;
    }

    .public_fixedDataTableCell_cellContent {
      padding-left: 0;
    }

    .public_fixedDataTable_bodyRow {
      cursor: default;

      .public_fixedDataTableCell_cellContent { // remove padding for body cells
        padding: 0;
      }

      // restore vertical alignment after padding remove ---------

      .fixedDataTableCellLayout_wrap1 {
        height: 100%;
      }

      .fixedDataTableCellLayout_wrap3 { // restore vertical
        vertical-align: middle;
      }

      // ----------------------------------------------------------

      &:hover {
        background: @OVERLAY_BORDER;
        .actions-wrap {
          opacity: 1;
        }
      }
    }

    .ReactVirtualized__Table__row {
      &:hover {
        .actions-wrap {
          opacity: 1;
        }
      }
    }

    .actions-wrap {
      opacity: 0;

      > a, button {
        &:not(:last-child) {
          margin-right: 5px;
        }
      }

    }
  }
}
